﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="Index" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

    <asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="panelLogin" runat="server" Style="margin-top: 30px;">
                <div style="float: left; width: 200px;">
                    <asp:Panel ID="panelLoginPage" runat="server" Visible='<%# !isLogin() %>'>
                        <asp:Label ID="lblUsername" runat="server" Text="Username"></asp:Label>
                        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="lblPassword" runat="server" Text="Password"></asp:Label>
                        <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                        <div>
                            <asp:Label ID="lblError" runat="server" Text="Email & Password does not match" Visible="false" ForeColor="Red"></asp:Label>
                        </div>

                        <br />
                        <div>
                            <asp:HyperLink ID="linkRegister" runat="server" Text="Register a new member" NavigateUrl="~/Registration.aspx"></asp:HyperLink>
                            <br />
                            <asp:HyperLink ID="linkForget" runat="server" 
                                NavigateUrl="~/ForgetPassword.aspx" Text="Forget Password"></asp:HyperLink>
                        </div>
                        <br />
                        <asp:Button ID="btnlogin" runat="server" Text="Login" OnClick="btnlogin_Click" />
                        
                    </asp:Panel>
                    <asp:Panel ID="panelLogined" runat="server" Visible='<%# isLogin() %>' Style="text-align: center;">
                        <div>
                            <asp:Image ID="imgUser" runat="server" ImageUrl="~/image/user_male.png" />
                        </div>

                        <asp:Label ID="Label1" runat="server" Text='<%# LoginedMember.Name %>'></asp:Label>
                        <hr />
                        <div class="LeftMenu">
                            <ul style="list-style: none;">
                                <li>
                                    <img src="./image/mail.png" width="30px" alt="" />
                                    <a href="./NewShipment.aspx"><span>Shipment</span></a></li>
                                <li>
                                    <img src="./image/barcode.png" width="30px" alt="" />
                                    <a href="./TrackPackage.aspx"><span>Track Package</span></a></li>
                                <li>
                                    <img src="./image/summary.png" width="30px" alt="" />
                                    <a href="./PackageHistory.aspx"><span>View Your History</span></a></li>
                            </ul>
                        </div>
                    </asp:Panel>
                </div>
                <div style="padding-left: 240px;">
                    <h2>Welcome to Mail Management Tool    </h2>
                    
                    <br />
                    <hr />
                    <div>
                        <img src="./image/mail_new.png" alt="" style="float: right;" />
                        New Mail Shipment
                        <br />
                        <span>Mail Systems provides innovative and cost-effective mail and parcel barcoding, identification, processing and sorting systems for postal operators, mail service bureaus, corporate and captive mail centers, international mailers and private delivery companies.
                        </span>
                        <br />
                        <p>
                            <span>Founded in 1997, ID Mail has helped customers worldwide improve their profitability by reengineering mail operations with solutions that reduce postage and labor expenses, while simultaneously increasing the quality, speed, and data capture of mail 
                        processing.</span>
                        </p>
                    </div>


                   <%-- <div style="text-align: center;">
                        <img alt="" style="width: 350px;" src="Image/banner.jpg" />
                    </div>--%>
                </div>

            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
